<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Game</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Game</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../files/lib/game_rb.html">
                lib/game.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
This class represents a single MLB game
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000201">dump_boxscore</a>&nbsp;&nbsp;
      <a href="#M000197">find_by_date</a>&nbsp;&nbsp;
      <a href="#M000196">find_by_month</a>&nbsp;&nbsp;
      <a href="#M000215">get_atbats</a>&nbsp;&nbsp;
      <a href="#M000212">get_attendance</a>&nbsp;&nbsp;
      <a href="#M000207">get_batters</a>&nbsp;&nbsp;
      <a href="#M000200">get_boxscore</a>&nbsp;&nbsp;
      <a href="#M000204">get_closing_pitchers</a>&nbsp;&nbsp;
      <a href="#M000199">get_eventlog</a>&nbsp;&nbsp;
      <a href="#M000216">get_hitchart</a>&nbsp;&nbsp;
      <a href="#M000214">get_innings</a>&nbsp;&nbsp;
      <a href="#M000208">get_lineups</a>&nbsp;&nbsp;
      <a href="#M000213">get_media</a>&nbsp;&nbsp;
      <a href="#M000217">get_num_innings</a>&nbsp;&nbsp;
      <a href="#M000205">get_pitchers</a>&nbsp;&nbsp;
      <a href="#M000206">get_pitches</a>&nbsp;&nbsp;
      <a href="#M000209">get_pitching</a>&nbsp;&nbsp;
      <a href="#M000198">get_rosters</a>&nbsp;&nbsp;
      <a href="#M000211">get_score</a>&nbsp;&nbsp;
      <a href="#M000203">get_starting_pitchers</a>&nbsp;&nbsp;
      <a href="#M000210">get_winner</a>&nbsp;&nbsp;
      <a href="#M000190">load_from_scoreboard</a>&nbsp;&nbsp;
      <a href="#M000189">new</a>&nbsp;&nbsp;
      <a href="#M000202">print_linescore</a>&nbsp;&nbsp;
      <a href="#M000194">set_homeruns</a>&nbsp;&nbsp;
      <a href="#M000192">set_innings</a>&nbsp;&nbsp;
      <a href="#M000195">set_pitchers</a>&nbsp;&nbsp;
      <a href="#M000191">set_status</a>&nbsp;&nbsp;
      <a href="#M000193">set_totals</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





    <div id="attribute-list">
      <h3 class="section-bar">Attributes</h3>

      <div class="name-list">
        <table>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">ampm</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_code</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_division</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_errors</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_file_code</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_games_back</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_games_back_wildcard</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_hits</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_innings</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_loss</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_name_abbrev</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_runs</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_team_city</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_team_id</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_team_name</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">away_win</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">boxscore</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">day</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">day</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">eventlog</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">game_number</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">game_pk</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">game_type</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">gameday</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">gameday_sw</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">gid</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_code</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_division</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_errors</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_file_code</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_games_back</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_games_back_wildcard</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_hits</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_innings</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_loss</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_name_abbrev</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_runs</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team_abbrev</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team_city</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team_id</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team_name</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_team_name</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">home_win</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">homeruns</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">innings</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">league</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">losing_pitcher</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">media</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">month</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">rosters</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">save_pitcher</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">scoreboard_game_id</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">status</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">time</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">time_zone</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">venue</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
additional attributes from master_scoreboard.xml

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">venue_w_chan_loc</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">visit_team_abbrev</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">visit_team_name</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">visiting_team</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">winning_pitcher</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">year</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        </table>
      </div>
    </div>
      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000197" class="method-detail">
        <a name="M000197"></a>

        <div class="method-heading">
          <a href="Game.src/M000197.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000197.html');return false;">
          <span class="method-name">find_by_date</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of <a href="Game.html">Game</a> objects for each game for
the specified day
</p>
        </div>
      </div>

      <div id="method-M000196" class="method-detail">
        <a name="M000196"></a>

        <div class="method-heading">
          <a href="Game.src/M000196.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000196.html');return false;">
          <span class="method-name">find_by_month</span><span class="method-args">(year, month)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000189" class="method-detail">
        <a name="M000189"></a>

        <div class="method-heading">
          <a href="Game.src/M000189.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000189.html');return false;">
          <span class="method-name">new</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000201" class="method-detail">
        <a name="M000201"></a>

        <div class="method-heading">
          <a href="Game.src/M000201.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000201.html');return false;">
          <span class="method-name">dump_boxscore</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Saves an HTML version of the boxscore for the game
</p>
        </div>
      </div>

      <div id="method-M000215" class="method-detail">
        <a name="M000215"></a>

        <div class="method-heading">
          <a href="Game.src/M000215.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000215.html');return false;">
          <span class="method-name">get_atbats</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of <a href="AtBat.html">AtBat</a> objects that represent
each atbat of the game
</p>
        </div>
      </div>

      <div id="method-M000212" class="method-detail">
        <a name="M000212"></a>

        <div class="method-heading">
          <a href="Game.src/M000212.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000212.html');return false;">
          <span class="method-name">get_attendance</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns a string holding the game attendance value
</p>
        </div>
      </div>

      <div id="method-M000207" class="method-detail">
        <a name="M000207"></a>

        <div class="method-heading">
          <a href="Game.src/M000207.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000207.html');return false;">
          <span class="method-name">get_batters</span><span class="method-args">(home_or_away)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of either home or away batters for this game home_or_away
must be a string with value &#8216;home&#8217; or &#8216;away&#8217; The
values in the returned array are <a
href="BattingAppearance.html">BattingAppearance</a> instances
</p>
        </div>
      </div>

      <div id="method-M000200" class="method-detail">
        <a name="M000200"></a>

        <div class="method-heading">
          <a href="Game.src/M000200.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000200.html');return false;">
          <span class="method-name">get_boxscore</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns a <a href="BoxScore.html">BoxScore</a> object representing the
boxscore for this game
</p>
        </div>
      </div>

      <div id="method-M000204" class="method-detail">
        <a name="M000204"></a>

        <div class="method-heading">
          <a href="Game.src/M000204.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000204.html');return false;">
          <span class="method-name">get_closing_pitchers</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of the closing pitchers for the game
</p>
<pre>
   [0] = visiting team pitcher
   [1] = home team pitcher
</pre>
        </div>
      </div>

      <div id="method-M000199" class="method-detail">
        <a name="M000199"></a>

        <div class="method-heading">
          <a href="Game.src/M000199.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000199.html');return false;">
          <span class="method-name">get_eventlog</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000216" class="method-detail">
        <a name="M000216"></a>

        <div class="method-heading">
          <a href="Game.src/M000216.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000216.html');return false;">
          <span class="method-name">get_hitchart</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000214" class="method-detail">
        <a name="M000214"></a>

        <div class="method-heading">
          <a href="Game.src/M000214.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000214.html');return false;">
          <span class="method-name">get_innings</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of <a href="Inning.html">Inning</a> objects that represent
each inning of the game
</p>
        </div>
      </div>

      <div id="method-M000208" class="method-detail">
        <a name="M000208"></a>

        <div class="method-heading">
          <a href="Game.src/M000208.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000208.html');return false;">
          <span class="method-name">get_lineups</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns the starting lineups for this game in an array with 2 elements
results[0] = visitors results[1] = home
</p>
        </div>
      </div>

      <div id="method-M000213" class="method-detail">
        <a name="M000213"></a>

        <div class="method-heading">
          <a href="Game.src/M000213.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000213.html');return false;">
          <span class="method-name">get_media</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000217" class="method-detail">
        <a name="M000217"></a>

        <div class="method-heading">
          <a href="Game.src/M000217.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000217.html');return false;">
          <span class="method-name">get_num_innings</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns the number of innings for this game
</p>
        </div>
      </div>

      <div id="method-M000205" class="method-detail">
        <a name="M000205"></a>

        <div class="method-heading">
          <a href="Game.src/M000205.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000205.html');return false;">
          <span class="method-name">get_pitchers</span><span class="method-args">(home_or_away)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of all pitchers for either the home team or the away team.
The values in the returned array are <a
href="PitchingAppearance.html">PitchingAppearance</a> instances
</p>
        </div>
      </div>

      <div id="method-M000206" class="method-detail">
        <a name="M000206"></a>

        <div class="method-heading">
          <a href="Game.src/M000206.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000206.html');return false;">
          <span class="method-name">get_pitches</span><span class="method-args">(pid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of pitches from this game for the pitcher identified by
pid
</p>
        </div>
      </div>

      <div id="method-M000209" class="method-detail">
        <a name="M000209"></a>

        <div class="method-heading">
          <a href="Game.src/M000209.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000209.html');return false;">
          <span class="method-name">get_pitching</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns the pitchers for this game in an array with 2 elements results[0] =
visitors results[1] = home
</p>
        </div>
      </div>

      <div id="method-M000198" class="method-detail">
        <a name="M000198"></a>

        <div class="method-heading">
          <a href="Game.src/M000198.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000198.html');return false;">
          <span class="method-name">get_rosters</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns a 2 element array containing the home and visiting rosters for this
game
</p>
<pre>
   [0] array of all visitor players
   [1] array of all home players
</pre>
        </div>
      </div>

      <div id="method-M000211" class="method-detail">
        <a name="M000211"></a>

        <div class="method-heading">
          <a href="Game.src/M000211.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000211.html');return false;">
          <span class="method-name">get_score</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns a 2 element array holding the game score
</p>
<pre>
   [0] visiting team runs
   [1] home team runs
</pre>
        </div>
      </div>

      <div id="method-M000203" class="method-detail">
        <a name="M000203"></a>

        <div class="method-heading">
          <a href="Game.src/M000203.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000203.html');return false;">
          <span class="method-name">get_starting_pitchers</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns an array of the starting pitchers for the game
</p>
<pre>
   [0] = visiting team pitcher
   [1] = home team pitcher
</pre>
        </div>
      </div>

      <div id="method-M000210" class="method-detail">
        <a name="M000210"></a>

        <div class="method-heading">
          <a href="Game.src/M000210.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000210.html');return false;">
          <span class="method-name">get_winner</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns the team abreviation of the winning team
</p>
        </div>
      </div>

      <div id="method-M000190" class="method-detail">
        <a name="M000190"></a>

        <div class="method-heading">
          <a href="Game.src/M000190.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000190.html');return false;">
          <span class="method-name">load_from_scoreboard</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Setup a <a href="Game.html">Game</a> object from data read from the
master_scoreboard.xml file
</p>
        </div>
      </div>

      <div id="method-M000202" class="method-detail">
        <a name="M000202"></a>

        <div class="method-heading">
          <a href="Game.src/M000202.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000202.html');return false;">
          <span class="method-name">print_linescore</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Returns a string containing the linescore in the following printed format:
</p>
<pre>
  Away 1 3 1
  Home 5 8 0
</pre>
        </div>
      </div>

      <div id="method-M000194" class="method-detail">
        <a name="M000194"></a>

        <div class="method-heading">
          <a href="Game.src/M000194.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000194.html');return false;">
          <span class="method-name">set_homeruns</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets a list of players who had homeruns in this game from data in the
master_scoreboard.xml file
</p>
        </div>
      </div>

      <div id="method-M000192" class="method-detail">
        <a name="M000192"></a>

        <div class="method-heading">
          <a href="Game.src/M000192.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000192.html');return false;">
          <span class="method-name">set_innings</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the away and home innings array containing scores by inning from data
in the master_scoreboard.xml file
</p>
        </div>
      </div>

      <div id="method-M000195" class="method-detail">
        <a name="M000195"></a>

        <div class="method-heading">
          <a href="Game.src/M000195.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000195.html');return false;">
          <span class="method-name">set_pitchers</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the pitchers of record (win, lose, save) from data in the
master_scoreboard.xml file
</p>
        </div>
      </div>

      <div id="method-M000191" class="method-detail">
        <a name="M000191"></a>

        <div class="method-heading">
          <a href="Game.src/M000191.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000191.html');return false;">
          <span class="method-name">set_status</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the game status from data in the master_scoreboard.xml file
</p>
        </div>
      </div>

      <div id="method-M000193" class="method-detail">
        <a name="M000193"></a>

        <div class="method-heading">
          <a href="Game.src/M000193.html" target="Code" class="method-signature"
            onclick="popupCode('Game.src/M000193.html');return false;">
          <span class="method-name">set_totals</span><span class="method-args">(element)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the Runs/Hits/Errors totals from data in the master_scoreboard.xml
file
</p>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>